#include "scanview.h"
#include "ui_scanview.h"

ScanView::ScanView(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ScanView)
{
    ui->setupUi(this);
    widget = new GLWidget(ui->openGLWidget);
    connect(widget, &GLWidget::renderDone, this, &ScanView::renderDone);
    widget->show();
}

ScanView::~ScanView()
{
    delete ui;
}

void ScanView::renderDone()
{
    widget->resizeWidget();
//    widget->renderNow();
    widget->update();
}

